package offer;

public class offer64 {
    static int res = 0;
    public static int sumNums(int n) {
       boolean x = n>1&&sumNums(n-1)>0;
       res =  res+n;

       return res;
    }

    public static void main(String[] args) {
        int i =3;
      int res=  sumNums(i);
    }
}
